package testers;

import java.awt.BorderLayout;
import java.awt.Button;

import javax.swing.Box;
import javax.swing.JFrame;

public class Test extends JFrame {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		JFrame frame = new JFrame("Vertical Box");
	    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	    Box box = Box.createVerticalBox(); 
	    box.add(new Button("Top"));
	    box.add(Box.createVerticalStrut(25));
	    box.add(new Button("Middle"));
	    box.add(Box.createVerticalStrut(10));
	    box.add(new Button("Bottom"));
	    frame.add(box, BorderLayout.CENTER);
	    frame.setSize(300, 200);
	    frame.setVisible(true);

	}
	

}
